package cn.echogo.framework.app;

import android.app.Application;
import cn.echogo.framework.commons.EGAsyncTaskPool;
import cn.echogo.framework.http.EGHttpClient;
import cn.echogo.framework.http.imp.EGHttpClientImp;

public class EGApplication extends Application {

	public EGAsyncTaskPool asyncTaskPool;
	public EGHttpClient httpClient;

	@Override
	public void onCreate() {
		asyncTaskPool = new EGAsyncTaskPool();
	}

	public EGHttpClient getHttpClient() {
		if (httpClient == null) {
			httpClient = new EGHttpClientImp();
		}
		return httpClient;
	}
}
